package com.cashmama.market.api.domain.vo.user.profile;

import com.cashmama.market.api.infras.handler.ResponseData;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-04-28 15:12
 **/
public class UserSocialLoginResponse implements ResponseData {

    private String token;
    private String categoryCode;
    private boolean newRegister;
    private String mobile;
    private String userCode;
    private String email;

    public UserSocialLoginResponse(UserRegisterLoginVO userRegisterLogin) {
        this.categoryCode = userRegisterLogin.getCategoryCode();
        this.newRegister = userRegisterLogin.isNewRegister();
        this.mobile = userRegisterLogin.getMobile();
        this.token = userRegisterLogin.getToken();
        this.userCode = userRegisterLogin.getUserCode();
        this.email = userRegisterLogin.getEmail();
    }

    public String getToken() {
        return token;
    }

    public UserSocialLoginResponse setToken(String token) {
        this.token = token;
        return this;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public UserSocialLoginResponse setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
        return this;
    }

    public boolean isNewRegister() {
        return newRegister;
    }

    public UserSocialLoginResponse setNewRegister(boolean newRegister) {
        this.newRegister = newRegister;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public UserSocialLoginResponse setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getUserCode() {
        return userCode;
    }

    public UserSocialLoginResponse setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public UserSocialLoginResponse setEmail(String email) {
        this.email = email;
        return this;
    }
}
